<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<? include '../console/judge_console.php'; $mysql=new Mysql();?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script src="../js/jquery-1.8.3.min.js"></script>
<link href="../css/iframe01.css" rel="stylesheet" type="text/css" />
<style type="text/css">
#detail_div{
	width:350px; height:150px;
	background-color:#99F;
	border-radius:5px;
	position:fixed;
	top:100px; left:275px;
	box-shadow:0 0 4px #3C6;
	color:#FFF;
	padding:10px 0 0 20px;
	display:none;
}
</style>
</head>

<body><center>
<table border="0" cellspacing="0" cellpadding="5" class="table">
<tr align="left"><th width="10%">游戏名称</th><th width="10%">版本</th><th width="15%">时间</th><th width="10%">评测人</th><th width="10%">结果</th><th width="10%">提交人</th><th width="10%">详情</th><th>文档</th></tr>
<?
$result_array=$mysql->getJudge();
foreach($result_array as $v){
	echo "<tr><td>".$v['gamename']."</td><td>".$v['version']."</td><td>".$v['date']."</td><td>".$v['executor']."</td><td>".$v['result']."</td><td>".$v['operater']."</td><td><input type='button' value='详情' class='button02' onclick='showDetail(\"".$v['detail']."\")'></td><td><input type='button' onclick='downWord(\"$v[wordsrc]\")' value='下载' class='button02'></td></tr>";
}
//<input type='button' value='下载' class='button02' onclick='downWord(\"".$v['wordsrc']."\")'>
?>
</table>

<div id="detail_div" align="left" onclick='detail_none()'>
</div>
</center>
<input type="button" value="添加" class="button01" style="margin:50px" onclick="addJudge()" />
</body>
<script language="javascript">
function addJudge(){
	window.open("./judge_iframe_add.php","_self");
}
function showDetail(detail){
	document.getElementById('detail_div').innerHTML=detail;
	$("#detail_div").css("display","block");
}
function detail_none(){
	$("#detail_div").css("display","none");
}
function downWord(src){
	window.open("../file_operate/file_down.php?file_name="+src,"_self");
}
</script>
</html>